package producer.service;

import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import producer.dao.CourseListDao;
import producer.entity.Good;

import java.util.List;

@Service(version = "${demo.service.version}")
public class CourseListServiceImpl implements CourseListService{

    @Autowired
    CourseListDao courseListDao;

    @Override
    public List<Good> getAllGood() {
        return courseListDao.getAllGood();
    }

    @Override
    public String test() {
        return "服务提供者";
    }
}
